PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-05-10 10:20:47.313852+00:00 (UTC)
In US/Central Time, this is 2024-05-10 05:20:47.313852-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/e961e1b8ab5ff20b89308e2705e100af2518a30c3303708205a4b84a4ee2f2da.png
We are just generating a random time serie here.
../../_images/143b7751f3f6173fb13a760cf3c5aad55c0ee18b794de86068ba42191038c480.png
../../_images/f83653a4371b75ded4c1c652fe94934145c586a4a07a99d0329a83e1d42e1d64.png